Greatest Common Divisor From Factorisation
Given integers
Note that as written above, we use the same set of primes in the factorisation for each
The idea here is very simple, choosing a power bigger than either
Proof
This follows from the expression of divisors from the unique factorisation.
That is, some integer
where
The greatest common divisor of